import cv2
import numpy as np

img = np.zeros((480, 640, 3), np.uint8)
cv2.putText(img, "hello world", (10, 400), cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, 3, (255, 0, 0))
cv2.putText(img, "hello world", (10, 300), cv2.FONT_HERSHEY_SIMPLEX, 3, (255, 0, 0))
cv2.putText(img, "hello world", (10, 200), cv2.FONT_HERSHEY_TRIPLEX, 3, (255, 0, 0))
while True:
    cv2.imshow('text', img)
    key = cv2.waitKey(10)
    if key & 0xFF == ord('q'):
        break

cv2.destroyAllWindows()
